//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.domain;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class TextMessage {
    @XStreamAlias("ToUserName")
    private String toUserName;
    @XStreamAlias("FromUserName")
    private String fromUserName;
    @XStreamAlias("CreateTime")
    private long createTime;
    @XStreamAlias("MsgType")
    private String msgType;
    @XStreamAlias("Content")
    private String content;

    public TextMessage() {
    }


    public String getToUserName() {
        return this.toUserName;
    }

    public String getFromUserName() {
        return this.fromUserName;
    }

    public long getCreateTime() {
        return this.createTime;
    }

    public String getMsgType() {
        return this.msgType;
    }

    public String getContent() {
        return this.content;
    }

    public void setToUserName(final String toUserName) {
        this.toUserName = toUserName;
    }

    public void setFromUserName(final String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public void setCreateTime(final long createTime) {
        this.createTime = createTime;
    }

    public void setMsgType(final String msgType) {
        this.msgType = msgType;
    }

    public void setContent(final String content) {
        this.content = content;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TextMessage)) {
            return false;
        } else {
            TextMessage other = (TextMessage)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label63: {
                    Object this$toUserName = this.getToUserName();
                    Object other$toUserName = other.getToUserName();
                    if (this$toUserName == null) {
                        if (other$toUserName == null) {
                            break label63;
                        }
                    } else if (this$toUserName.equals(other$toUserName)) {
                        break label63;
                    }

                    return false;
                }

                Object this$fromUserName = this.getFromUserName();
                Object other$fromUserName = other.getFromUserName();
                if (this$fromUserName == null) {
                    if (other$fromUserName != null) {
                        return false;
                    }
                } else if (!this$fromUserName.equals(other$fromUserName)) {
                    return false;
                }

                if (this.getCreateTime() != other.getCreateTime()) {
                    return false;
                } else {
                    Object this$msgType = this.getMsgType();
                    Object other$msgType = other.getMsgType();
                    if (this$msgType == null) {
                        if (other$msgType != null) {
                            return false;
                        }
                    } else if (!this$msgType.equals(other$msgType)) {
                        return false;
                    }

                    Object this$content = this.getContent();
                    Object other$content = other.getContent();
                    if (this$content == null) {
                        if (other$content != null) {
                            return false;
                        }
                    } else if (!this$content.equals(other$content)) {
                        return false;
                    }

                    return true;
                }
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof TextMessage;
    }



    public String toString() {
        return "TextMessage(toUserName=" + this.getToUserName() + ", fromUserName=" + this.getFromUserName() + ", createTime=" + this.getCreateTime() + ", msgType=" + this.getMsgType() + ", content=" + this.getContent() + ")";
    }
}
